/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// /fiAccountVerify/queryListForDealer 经销商端-资金返利对账查询
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/fiAccountVerify/queryListForDealer`, params)

// /fiAccountVerify/getVerifyById 根据对账单id获取对账单信息
export const queryById = (id) => axios.get(`${SERVER.WHOLESALES}/fiAccountVerify/getVerifyById?verifyId=${id}`)

// /fiAccountVerify/exportListForDealer 经销商端-资金返利对账导出
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/fiAccountVerify/exportListForDealer`, params, {
  responseType: 'blob'
})

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
